<?php

namespace App\Library\Requests\SourceMaterial;

use App\Library\Requests\Base\BasePageRequest;

class SourceMaterialPagingRequest extends BasePageRequest
{
    public function rules(): array
    {
        return array_merge(parent::rules(), [
            'date' => 'nullable|date|date_format:Y-m',
            'mobile' => 'nullable|string|size:11|regex:' . __('com.mobileReg'),
            'title' => 'nullable|string|max:255'
        ]);
    }
}
